package com.ruoyi.service.jpjs.bi_durationeffect.impl;

import com.ruoyi.mapper.jpjs.bi_durationeffect.DurationEffectMapper;
import com.ruoyi.service.jpjs.bi_durationeffect.DurationEffectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DurationEffectServiceImpl implements DurationEffectService {

    @Autowired
    private DurationEffectMapper durationEffectMapper;

    @Override
    public List<Map<String, Object>> selectDurationEffectList(Map<String, Object> map) {
        return durationEffectMapper.selectDurationEffectList(map);
    }

    @Override
    public Map<String, Object> selectDurationEffect(String id) {
        return durationEffectMapper.selectDurationEffect(id);
    }

    @Override
    public int addDurationEffect(Map<String, Object> map) {
        return durationEffectMapper.addDurationEffect(map);
    }

    @Override
    public int editDurationEffect(Map<String, Object> map) {
        return durationEffectMapper.editDurationEffect(map);
    }

    @Override
    public int deleteDurationEffect(String id) {
        return durationEffectMapper.deleteDurationEffect(id);
    }

    @Override
    public Map<String, Object> selectDurationEffectDown(String companyId,String proId) {
        return durationEffectMapper.selectDurationEffectDown(companyId,proId);
    }

    @Override
    public String getMaxZeroEndTime(String companyId,String proId) {
        return durationEffectMapper.getMaxZeroEndTime(companyId,proId);
    }

    @Override
    public int addDurationEffectDown(Map<String, Object> map) {
        return durationEffectMapper.addDurationEffectDown(map);
    }

    @Override
    public int editDurationEffectDown(Map<String, Object> map) {
        return durationEffectMapper.editDurationEffectDown(map);
    }
}
